/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2022-02-05 08:46:52
 * @LastEditors: GGB
 * @LastEditTime: 2022-02-05 10:18:41
 */
import { useWindowEvent } from './event';

/**
 * @description: 监听窗口事件
 */
export const useMouseWheel = (callback) => {
    const judgeWheelStatusHandler = (e) => {
        const { deltaY } = e
        callback(deltaY)

    }
    useWindowEvent('mousewheel', judgeWheelStatusHandler)
}